package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;

import java.time.LocalDate;

    @TableName("t_sellMovie")
    @ApiModel(value = "销售实体")
    public class TianMaoBean {

        @TableId(value = "pk_sellMovieId",type = IdType.AUTO)
        private Integer id;
        @TableField("sm_name")
        private String name;
        @TableField("sm_movieName")
        private String movieName;
        @TableField("sm_num")
        private Integer num;
        @TableField("sm_price")
        private Integer price;
        @TableField("sm_date")
        private String date;
        @TableField("sm_endDate")
        private String endDate;
        @TableField("sm_img")
        private String img;

        public TianMaoBean() {
        }

        public TianMaoBean(String name, String movieName, Integer num, Integer price, String date, String endDate, String img) {
            this.name = name;
            this.movieName = movieName;
            this.num = num;
            this.price = price;
            this.date = date;
            this.endDate = endDate;
            this.img = img;
        }

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getMovieName() {
            return movieName;
        }

        public void setMovieName(String movieName) {
            this.movieName = movieName;
        }

        public Integer getNum() {
            return num;
        }

        public void setNum(Integer num) {
            this.num = num;
        }

        public Integer getPrice() {
            return price;
        }

        public void setPrice(Integer price) {
            this.price = price;
        }

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public String getEndDate() {
            return endDate;
        }

        public void setEndDate(String endDate) {
            this.endDate = endDate;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        @Override
        public String toString() {
            return "Movie{" +
                    "id=" + id +
                    ", name='" + name + '\'' +
                    ", movieName='" + movieName + '\'' +
                    ", num=" + num +
                    ", price=" + price +
                    ", date=" + date +
                    ", endDate=" + endDate +
                    ", img='" + img + '\'' +
                    "}\n";
        }


}
